<%@ page language="java" contentType="text/html; charset=UTF-8"%>
<%@taglib prefix="s" uri="/struts-tags"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
	<head>
		<title><s:property value='%{getText("emp_title")}' /></title>
		<link href="/SCMDB/style/main.css" rel="stylesheet" type="text/css" />
		<script type="text/javascript" src="/SCMDB/js/Super.js"></script>
		<%@ include file="../commonPage/message.jsp"%>
	</head>
	<body>
		<h2>
			<s:property value='%{getText("current_position")}' />${parentMenu}>>${currentMenu}
		</h2>
		<s:form action="employeeAction!findAll" method="post" theme="simple">
			<div class="main">
				<fieldset class="fieldSearch">
					<legend>
						<s:property value='%{getText("emp_legend")}' />
					</legend>
					<table border="0" cellspacing="0" cellpadding="0">
				<tr>
				<td align="right" class="p_8">卡号：</td><td><s:if test="%{empLabelID==0}">
							<s:textfield name="empLabelID" value="" cssClass="sInput" />
						</s:if>
						<s:else>
							<s:textfield name="entity.empLabelID" cssClass="sInput" />
						</s:else></td>
				<td align="right" class="p_14"><s:property value='%{getText("emp_td1")}' /></td><td><s:textfield name="empName" cssClass="sInput" /></td>
				<td align="right" class="p_14">班组：</td><td><s:select list="entity.listDepartment" name="entity.empDepID"
							listKey="id" listValue="deptName" headerKey="0" headerValue="--请选择--"></s:select></td>
					<td align="right" class="p_14">岗位/工种：</td><td><s:select  list="entity.listWorkType" name="entity.empWorkTypeID"
							listKey="id"  listValue="name"  headerKey="0" headerValue="--请选择--"></s:select></td>
			   <td align="right" class="p_14">部门：</td><td><s:select list="entity.listBuMen" name="entity.empBuMenID"
							listKey="id" listValue="name" headerKey="0" headerValue="--请选择--"></s:select></td>
				
				<td align="right" class="p_14" colspan="2"><s:submit value="查询" cssClass="bSearch" /></td>
				</tr>
				</table>
				</fieldset>
				<p class="pEdit">
					<input name="set" type="button" class="bExcel" value="下载模板" onclick="window.location.href='/SCMDB/employeeAction!downLoadExcel.action'" />
					<%=request.getAttribute("button")==null?"":request.getAttribute("button")%>
				</p>
				<table border="0" cellpadding="1" cellspacing="1" class="tableList">
					<thead>
						<tr>
							<th width="5%" align="center">
								<input type="checkbox" name="checkbox" value="checkbox"
									onclick="Super.checkAll(this.checked)" title="全选/取消" />
							</th>
							<th width="5%" class="number">
								<s:property value='%{getText("emp_th1")}' />
							</th>
							<th width="16%">
								<s:property value='%{getText("emp_th2")}' />
							</th>
							<th width="16%">
								<s:property value='%{getText("emp_th3")}' />
							</th>
							<th width="16%">
								编号
							</th>
							<th width="16%">
								班组
							</th>
							<th width="16%">
								岗位/工种
							</th>
							<th width="16%">
								部门
							</th>
							<!--
							<th width="8%">
								<s:property value='%{getText("emp_th6")}' />
							</th>
							<th width="8%">
								<s:property value='%{getText("emp_th7")}' />
							</th>
							<th width="8%">
								<s:property value='%{getText("emp_th8")}' />
							</th>
					
						--></tr>
					</thead>

					<tbody>
						<s:iterator id="emp" value="entity.list" status="u">
							<tr>
								<td height="46">
									<input type="checkbox" name="checkbox" value="${emp.id}" />
								</td>
								<td class="number">
									${entity.index+u.index}
							  </td>
								<td>
									${emp.empLableID}
								</td>
								<td>
									<a href="#" onclick="Super.Popup(5,'查询','/SCMDB/employeeAction!findEmp.action?id=${emp.id}','',700,600);">
										${emp.empName} 
									</a>
								</td>
								<td>
									${emp.empWorkID}
								</td>
								<td>
									${emp.depart.deptName}
								</td><!--
								<td>
									${emp.duty.name}
								</td>
								<td>
									${emp.title.name}
								</td>
								-->
								<td>
									${emp.workType.name}
								</td>
								<td>
									${emp.bumen.name}
								</td>
							</tr>
						</s:iterator>
						<tr>
							<td colspan="11" class="turnPage">
								<jsp:include flush="true" page="../commonPage/page.jsp">
									<jsp:param name="entity" value="entity" />
								</jsp:include>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		</s:form>
	</body>
</html>
